if Session.Content.Values['UserValidated'] = 'Y' then
Response.Redirect ('%var:PageOffset/index.psc')
else
begin
result := 'Invalid login provided. Click <a href="%var:PageOffset/login.psc">here</a> to try again. If you don''t have a login account yet, then <a href="%var:PageOffset/register.psc">register now</a>.';